/<template>
  <div class="home1">
    <div class="lbt">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>1</van-swipe-item>
        <van-swipe-item>2</van-swipe-item>
        <van-swipe-item>3</van-swipe-item>
        <van-swipe-item>4</van-swipe-item>
      </van-swipe>
    </div>
    <div class="gg">
      <van-grid :column-num="3">
        <van-grid-item
          v-for="value in 6"
          :key="value"
          icon="photo-o"
          text="文字"
        />
      </van-grid>
    </div>

    <div class="tab">
      <div v-for="(item, index) in list" :key="index">
        <dl v-for="(value1, index1) in item.children" :key="index1">
          <dt><img :src="value1.img" alt="" /></dt>
          <dd>
            <p>{{ value1.title }}</p>
          </dd>
        </dl>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
      active: 0,
      value: 1,
    };
  },
  mounted() {
    this.$axios.get("/list").then((res) => {
      this.list = res.data;
    });
  },
};
</script>
<style lang="scss">
.home1 {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tab {
  width: 100%;
  display: flex;
}
dl {
  width: 200px;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
</style>